<style>
    body,html{
        background: #f9f9f9;
    }
</style>
{{ flash.output() }}
{% if accountList is defined %}
<table class="table table-hover" style="table-layout: fixed;">
    <thead>
    <tr class="info">
        <th>用户id</th>
        <th style="">姓名</th>
        <th>账号</th>
        <th>手机</th>
        <th>状态</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
    <tbody>
    {% for account in accountList %}
        <tr>
            <td>{{ account['iUserId'] }}</td>
            <td>{{ account['sUserName'] }}</td>
            <td>{{ account['sLogonName'] }}</td>
            <td>{{ account['sSelfPhone'] }}</td>
            <td>{{ account['bDisable'] ? '禁用' : '启用' }}</td>
            <td style="text-align: center;">
                <a href="#" onclick="setContact({{ account['iUserId'] }})" style="color: #00ee00;margin-right: 20px;">绑定</a>
                <a href="#" onclick="disContact({{ account['iUserId'] }})" style="color: #3085d6;margin-right: 20px;">取消绑定</a>
                {#<a href="#" onclick="setDisable({{ account['iUserId'] }})" style="color: salmon;">禁用</a>#}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{% endif %}